Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: Add tags to exports #364

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theyostalservice
Copy link
Contributor

Resolves #

Description

Checklist

@cla-bot cla-bot bot added the cla:yes label Nov 5, 2024
Copy link

github-actions bot commented Nov 6, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @theyostalservice and the rest of your teammates on Graphite Graphite

@@ -159,27 +159,48 @@ def test_saved_query_exports() -> None:
export_as: VIEW
schema: my_schema
alias: my_view_name
tags: "tag_1"
Copy link
Contributor Author

@theyostalservice theyostalservice Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line won't validate, because it's not a list. :/

The added print statement I put in below gives us this info:

SemanticManifestValidationResults(warnings=(), future_errors=(), errors=(
ValidationError(message='1 validation error for PydanticSavedQuery\nexports -> 0 -> config -> tags\n  
value is not a valid list (type=type_error.list)', context=FileContext(file_name='inline_for_test', line_number=1), extra_detail='  File "/Users/patricky/git/dbt-semantic-interfaces/dbt_semantic_interfaces/parsing/dir_to_model.py", line 343, in parse_config_yaml\n    results.append(saved_query_class.parse_obj(object_cfg))\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj\n  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__\n'),))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant